/**
 *	@project:	kybernetes
 *	@author:	D.Toepel
 *	@note:		---
 *	
 *	Copyright (C) 2009  D.Toepel <de.dtools> {at} <gmail> {dot} <com>
 *	
 *	This program is free software: you can redistribute it and/or modify
 *	it under the terms of the GNU General Public License as published by
 *	the Free Software Foundation, either version 3 of the License, or
 *	(at your option) any later version.
 *	
 *	This program is distributed in the hope that it will be useful,
 *	but WITHOUT ANY WARRANTY; without even the implied warranty of
 *	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *	GNU General Public License for more details.
 *	
 *	You should have received a copy of the GNU General Public License
 *	along with this program.  If not, see <http://www.gnu.org/licenses/>.
 *	
 */
package dt.htwk.rmi;

import java.io.Serializable;
import java.rmi.RemoteException;
import java.rmi.registry.LocateRegistry;
import java.rmi.registry.Registry;
import java.rmi.server.UnicastRemoteObject;

import dt.htwk.res.Resource;
import dt.htwk.sql.DBResult;
import dt.htwk.sql.Database;
import dt.htwk.utilities.User;

/**
 * <h3>RMISrvImpl</h3>
 * 
 * @author DToepel
 * 
 */
public class RMISrvImpl extends UnicastRemoteObject implements RMIConnector, Serializable  {

	/* ****************************************************
	 * Deklaration der Variablen und Komponenten
	 * **************************************************
	 */

	/**
	 * serialVersionUID -- Standard: 1L
	 */
	private static final long serialVersionUID = 1L;

	
	/**
	 * @throws RemoteException
	 */
	protected RMISrvImpl() throws RemoteException {
		super();
		// TODO Auto-generated constructor stub
	}


	/* (non-Javadoc)
	 * @see dt.htwk.rmi.RMIConnector#loginUser(java.lang.String, java.lang.String)
	 */
	@Override
	public boolean loginUser(String user, String pword) throws RemoteException {
		// TODO Auto-generated method stub
		return false;
	}


	/* (non-Javadoc)
	 * @see dt.htwk.rmi.RMIConnector#logoutUser(java.lang.String)
	 */
	@Override
	public boolean logoutUser(String user) throws RemoteException {
		// TODO Auto-generated method stub
		return false;
	}


	/* (non-Javadoc)
	 * @see dt.htwk.rmi.RMIConnector#registerUser(dt.htwk.utilities.User)
	 */
	@Override
	public boolean registerUser(User user) throws RemoteException {
		// TODO Auto-generated method stub
		return false;
	}


	/* (non-Javadoc)
	 * @see dt.htwk.rmi.RMIConnector#setTestText(java.lang.String)
	 */
	@Override
	public String setTestText(String text) throws RemoteException {
		System.out.println("client: " + text);
		return System.getProperty("user.name") + " : Welcome on Kybernetes Server. please log in ...";
	}


}
